package com.example.campus_order_sb.dto;

public class LoginResponse {
    private Integer id;
    private String userType;
    private boolean success;
    private String message;

    // 成功构造函数
    public LoginResponse(Integer id, String userType) {
        this.id = id;
        this.userType = userType;
        this.success = true;
        this.message = "登录成功";
    }

    // 失败构造函数
    public LoginResponse(String message, boolean success) {
        this.success = success;
        this.message = message;
    }

    // Getters and Setters
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserType() {
        return userType;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}